<?php
// 审核
$json_data = file_get_contents('php://input');
$data_array = json_decode($json_data, true);
$id = (int)$data_array['id']; // 消息ID
$command = $data_array['command']; // 动作名称, resolve=审批通过, reject=驳回请求
$result = $command == 'resolve' ? '已审核(By 小刘)' : '已驳回(By admin)';
echo json_encode([
    'error' => '', 
    'result' => $result // 操作后返回的结果
], 256);